
import ReactBox from 'grey-react-box';
import ControllerState from './ControllerState';

export { default as ControllerState } from './ControllerState';

export default class Controller extends ReactBox<ControllerState>{

    static _instance: Controller

    static get instance(): Controller {
        return Controller._instance || new Controller();
    }

    constructor() {
        super(new ControllerState());
        Controller._instance = this;
    }
}